# !/bin/sh

git config --global user.email "linwenjun@163.com"
git config --global user.name "linwenjun"

REPO_URL="github.com/recruiting-system/$TIME_STRING.git"

echo "the new repo url is $REPO_URL"

curl -i \
    -u "recruiting-system:${github_token}" https://api.github.com/user/repos \
    -d '{"name":"'"$TIME_STRING"'"}'

rm -fr .git

git init
git add .
git commit -m 'first commit'

git push -u https://$github_cert@$REPO_URL master
